import { AxiosPromise } from "axios";
import request from "@/utils/request.ts";

// 第二种：Axios请求MockJS数据（二次封装）Api优化版
export const pageProductApi = (params?: any, headers?: any) => {
  return request.get<any, any>("/product/brand/page", { params, headers });
};
// 第二种：Axios请求MockJS数据（二次封装）Api优化版
export const saveProductApi = (data: any, headers?: any) => {
  return request.post<any, any>("/product/brand/save", data, { headers });
};
// 第二种：Axios请求MockJS数据（二次封装）Api优化版
export const editProductApi = (data: any, headers?: any) => {
  return request.post<any, any>("/product/brand/edit", data, { headers });
};
